import request from '@/utils/request'
import requestNew from '@/utils/requestNew'
//珠海市质押转让图标
export function gaoxinOne(data) {
  return request({
    url: '/v1/region/gaoxinOne',
    method: 'get',
    params: data
  })
}
//专精小巨人列表
export function company(data) {
  return requestNew({
    url: '/v1/region/company',
    method: 'get',
    params: data
  })
}
// 进入3.0的登录页面
export function newlogin(data) {
  return request({
    url: '/v1/news/user/login',
    method: 'post',
    data
  })
}

//用户信息
export function newgetInfo(data) {
  return request({
    url: '/v1/news/user/info',
    method: 'post',
    data
  })
}

//账号信息
export function newsinfo(data) {
  return request({
    url: '/v1/news/user/newsinfo',
    method: 'post',
    data
  })
}
//账号列表
export function getuserList(data) {
  return request({
    url: '/v1/user/userList',
    method: 'post',
    data
  })
}
//老系统--镇街账号列表
export function streetOld(data) {
  return request({
    url: '/v1/old/user/street',
    method: 'get',
    params: data
  })
}
//本地查询公司信息
export function companydetail(data) {
  return request({
    url: '/v1/tianyancha/companydetail',
    method: 'get',
    params: data
  })
}
//修改联系人
export function updateUser(data) {
  return request({
    url: '/v1/news/user/update-user',
    method: 'post',
    data
  })
}
//重置密码
export function passWord(data) {
  return request({
    url: '/v1/news/user/password',
    method: 'post',
    data
  })
}
//账号启用禁用
export function userState(data) {
  return request({
    url: '/v1/news/user/state',
    method: 'post',
    data
  })
}
//创建员工账号
export function createUser(data) {
  return request({
    url: '/v1/news/user/create',
    method: 'post',
    data
  })
}
//修改员工账号
export function updateUserInfo(data) {
  return request({
    url: '/v1/news/user/update-user-info',
    method: 'post',
    data
  })
}
// 所有公司列表
export function getCompanyList(data) {
  return request({
    url: '/v1/company/companyList',
    method: 'get',
    params: data
  })
}
// 企业标签列表
export function companyLabelIndex(data) {
  return request({
    url: '/v1/company/companyLabelIndex',
    method: 'post',
    data
  })
}
// 企业标签添加
export function companyLabelAdd(data) {
  return request({
    url: '/v1/company/companyLabelAdd',
    method: 'post',
    data
  })
}
// 企业标签编辑
export function companyLabelEdit(data) {
  return request({
    url: '/v1/company/companyLabelEdit',
    method: 'post',
    data
  })
}
// 企业标签删除
export function companyLabelDel(data) {
  return request({
    url: '/v1/company/companyLabelDel',
    method: 'post',
    data
  })
}
// 需求标签列表
export function demandLabelIndex(data) {
  return request({
    url: '/v1/company/demandLabelIndex',
    method: 'post',
    data
  })
}
// 需求标签添加
export function demandLabelAdd(data) {
  return request({
    url: '/v1/company/demandLabelAdd',
    method: 'post',
    data
  })
}
// 需求标签编辑
export function demandLabelEdit(data) {
  return request({
    url: '/v1/company/demandLabelEdit',
    method: 'post',
    data
  })
}
// 需求标签删除
export function demandLabelDel(data) {
  return request({
    url: '/v1/company/demandLabelDel',
    method: 'post',
    data
  })
}
// 企业模糊搜索
export function seachCompany(data) {
  return requestNew({
    url: '/v1/company/seachCompany',
    method: 'post',
    data
  })
}
// 企业确认专利和优势标签
export function labelTrue(data) {
  return request({
    url: '/v1/company/labelTrue',
    method: 'post',
    data
  })
}

// 获取标签和不可修改标签
export function companyLabel(data) {
  return request({
    url: '/v1/visit/companyLabel',
    method: 'post',
    data
  })
}
// 创建走访记录
export function createVisit(data) {
  return request({
    url: '/v1/visit/createVisit',
    method: 'post',
    data
  })
}
// 获取走访记录列表
export function visitList(data) {
  return request({
    url: '/v1/visit/visitListnews',
    method: 'get',
    params: data
  })
}
// 获取需求记录列表
export function demandListNews(data) {
  return request({
    url: '/v1/visit/demandListNews',
    method: 'get',
    params: data
  })
}
// 删除走访记录
export function visitDel(data) {
  return request({
    url: '/v1/visit/visitDel',
    method: 'post',
    params: data
  })
}
// 所有需求标签展示
export function deamdLabel(data) {
  return request({
    url: '/v1/visit/deamdLabel',
    method: 'get',
    params: data
  })
}
// 某个走访记录详情
export function visitDetail(data) {
  return request({
    url: '/v1/visit/visitDetail',
    method: 'get',
    params: data
  })
}
// 企业走访记录详情
export function visitDetailtwo(data) {
  return request({
    url: '/v1/visit/visitDetailtwo',
    method: 'get',
    params: data
  })
}
// 主页面数据
export function indexInfo(data) {
  return request({
    url: '/v1/visit/index',
    method: 'get',
    params: data
  })
}
// 走访记录编辑管理
export function editVisit(data) {
  return request({
    url: '/v1/visit/editVisit',
    method: 'post',
    data
  })
}
// 走访记录编辑管理
export function filefun(data) {
  return request({
    url: '/v1/common/file',
    method: 'post',
    data
  })
}
// 获取天眼查信息
export function loginInfo(data) {
  return request({
    url: '/v1/tianyancha/login',
    method: 'post',
    data
  })
}
// 获取天眼查信息
export function currency(data) {
  return request({
    url: '/v1/tianyancha/currency',
    method: 'post',
    data
  })
}
// 公司天眼查信息刷新
export function companyTianynchaRefresh(data) {
  return request({
    url: '/v1/visit/companyTianynchaRefresh',
    method: 'post',
    data
  })
}
// 获取天眼查信息
export function tianyanchaphoneCurrency(data) {
  return request({
    url: '/v1/tianyanchaphone/currency',
    method: 'post',
    data
  })
}
// 诉讼详情
export function detail(data) {
  return request({
    url: '/v1/frontend/Iitigation/detail',
    method: 'post',
    data
  })
}
// 企业专利列表
export function patentlist(data) {
  return request({
    url: '/v1/company/patentlist',
    method: 'get',
    params: data
  })
}
// 商标列表
export function trademarklist(data) {
  return request({
    url: '/v1/company/trademarklist',
    method: 'get',
    params: data
  })
}
// 诉讼列表
export function litigationlist(data) {
  return request({
    url: '/v1/company/litigationlist',
    method: 'get',
    params: data
  })
}
// 企业荣誉
export function honorlist(data) {
  return request({
    url: '/v1/company/honorlist',
    method: 'get',
    params: data
  })
}
// 工作日历时间
export function calendar(data) {
  return request({
    url: '/v1/visit/calendar',
    method: 'get',
    params: data
  })
}
// // 企业分级管理列表
// export function dataList(data) {
//   return request({
//     url: '/v1/visit/dataList',
//     method: 'get',
//     params: data
//   })
// }
// 企业分级管理列表
export function dataList(data) {
  return request({
    url: '/v1/visit/dataList_two',
    method: 'get',
    params: data
  })
}
// 企业预警
// export function warningList(data) {
//   return request({
//     url: '/v1/visit/warningList',
//     method: 'get',
//     params: data
//   })
// }
export function warningList(data) {
  return request({
    url: '/v1/visit/warningList_two',
    method: 'get',
    params: data
  })
}
// 排行榜
export function rankList(data) {
  return request({
    url: '/v1/visit/rankList',
    method: 'get',
    params: data
  })
}
// 排行榜第二种
export function companyRank(data) {
  return requestNew({ //取消掉全局loading
    url: '/v1/region/rankList_two',
    method: 'get',
    params: data
  })
}
// 排行榜第三种--三年专利
export function rankListTwo(data) {
  return request({
    url: '/v1/region/rankList_two',
    method: 'get',
    params: data
  })
}

//大屏接口
//海珠区
export function gaoxin(data) {
  return request({
    url: '/v1/region/gaoxin',
    method: 'get',
    params: data
  })
}
// 区局大屏--中间部分
export function center(data) {
  return request({
    url: '/v1/region/center',
    method: 'post',
    data
  })
}

// 区局大屏--中下街道排名
export function centerarea(data) {
  return request({
    url: '/v1/region/centerarea',
    method: 'post',
    data
  })
}

// 区局大屏--左侧数据
export function getleftlist(data) {
  return request({
    url: '/v1/region/getleftlist',
    method: 'get',
    params: data
  })
}

// 首页-知识产权统计-新6个数据
export function getSixList(data) {
  return request({
    url: '/v1/region/getSixList',
    method: 'get',
    params: data
  })
}

// 生成走访记录word
export function createWord(data) {
  return request({
    url: '/v1/create/word',
    method: 'get',
    params: data
  })
}
// 首页-走访记录信息
export function getStreetVisitInfo(data) {
  return request({
    url: '/v1/region/getStreetVisitInfo',
    method: 'get',
    params: data
  })
}
// 首页-走访记录信息
export function getEmpower(data) {
  return request({
    url: '/v1/region/getEmpower',
    method: 'get',
    params: data
  })
}
// 首页-走访记录信息
export function getEmpowerSum(data) {
  return request({
    url: '/v1/region/getEmpowerSum',
    method: 'get',
    params: data
  })
}
// 首页-走访记录信息
export function getStreetInfo(data) {
  return request({
    url: '/v1/region/getStreetInfo',
    method: 'get',
    params: data
  })
}
// 区局大屏--地图
export function getmap(data) {
  return request({
    url: '/v1/region/getmap',
    method: 'get',
    params: data
  })
}



// 走访记录--中间部分
export function visitcenter(data) {
  return request({
    url: '/v1/visit/center',
    method: 'get',
    params: data
  })
}
// 走访记录--需求类型
export function visitcentertype(data) {
  return request({
    url: '/v1/visit/centertypenews',
    method: 'get',
    params: data
  })
}
// 走访记录--左侧数据
export function visitgetleftlist(data) {
  return request({
    url: '/v1/visit/getleftlist',
    method: 'get',
    params: data
  })
}
// 走访记录--左侧数据--发明新型外观专利情况
export function visitgetleftlist_zh(data) {
  return request({
    url: '/v1/visit/getleftlist_zh',
    method: 'get',
    params: data
  })
}
// 走访记录--右侧数据
export function visitgetrightlist(data) {
  return request({
    url: '/v1/visit/getrightlist',
    method: 'get',
    params: data
  })
}



// 街道大屏--中间
export function streetcenter(data) {
  return request({
    url: '/v1/street/center',
    method: 'get',
    params: data
  })
}
// 街道大屏--中间下方
export function streetcenterrat(data) {
  return request({
    url: '/v1/street/centerrat',
    method: 'get',
    params: data
  })
}
// 街道大屏--左侧
export function streetgetleftlist(data) {
  return request({
    url: '/v1/street/getleftlist',
    method: 'get',
    params: data
  })
}
// 街道大屏--右侧
export function streetgetrightlist(data) {
  return request({
    url: '/v1/street/getrightlist',
    method: 'get',
    params: data
  })
}
// 发送验证码
export function sendCode(data) {
  return request({
    url: "/v1/user/send-code",
    method: "post",
    data
  });
}
// 验证手机号
export function verification(data) {
  return request({
    url: "/v1/verification",
    method: "post",
    data
  });
}
// 微信授权
export function wechat(data) {
  return request({
    url: '/v1/wechat',
    method: 'get',
    params: data
  })
}
// 返回openid
export function getToken(data) {
  return request({
    url: "/v1/get_token",
    method: "post",
    data
  });
}
// 授权自动登录
export function openidLogin(data) {
  return request({
    url: '/v1/openid_login',
    method: 'get',
    params: data
  })
}
// 绑定并且返回信息
export function binding(data) {
  return request({
    url: "/v1/binding",
    method: "post",
    data
  });
}
// 短信--推送走访记录消息
export function sendInfo(data) {
  return request({
    url: "/v1/user/send-info",
    method: "post",
    data
  });
}
// 推送用户
export function pushUser(data) {
  return request({
    url: "/v1/compnay/push",
    method: "get",
    params: data
  });
}
// 获取公司专利数据
export function companynum(data) {
  return request({
    url: '/v1/company/companynum',
    method: 'get',
    params: data
  })
}
// 走访记录导出
export function visit_export(data) {
  return request({
    url: '/v1/company/visit_export',
    method: 'post',
    params: data
  })
}
// 镇街列表
export function companyStreet(data) {
  return request({
    url: '/v1/company/street',
    method: 'get',
    params: data
  })
}
// 删除单个需求记录
export function demand_del(data) {
  return request({
    url: '/v1/visit/demand_del',
    method: 'get',
    params: data
  })
}
// 公司对应的镇街
export function changeStreet(data) {
  return request({
    url: '/v1/visit/changeStreet',
    method: 'post',
    params: data
  })
}

// 权限开关
export function queuestate(data) {
  return request({
    url: '/v1/news/user/queuestate',
    method: 'post',
    params: data
  })
}

// 专利列表时实
export function expression(data) {
  return request({
    url: '/v1/di/expression',
    method: 'post',
    params: data
  })
}


// 名片识别
export function getBusinessCardInfo(data) {
  return request({
    url: '/v1/business/getBusinessCardInfo',
    method: 'post',
    params: data
  })
}
// 企业信息
export function companyInfo(data) {
  return request({
    url: '/v1/business/companyInfo',
    method: 'post',
    params: data
  })
}
// 企业走访记录列表 
export function companyVisit(data) {
  return request({
    url: '/v1/business/companyVisit',
    method: 'post',
    params: data
  })
}

// 企业需求记录列表
export function companyDemand(data) {
  return request({
    url: '/v1/business/companyDemand',
    method: 'post',
    params: data
  })
}

// 企业需求记录列表
export function companyPatentInfo(data) {
  return request({
    url: '/v1/business/companyPatentInfo',
    method: 'post',
    params: data
  })
}

// 企业专利分布
export function companyYearInfo(data) {
  return request({
    url: '/v1/business/companyYearInfo',
    method: 'post',
    params: data
  })
}

// 企业动态信息
export function companyAllInfo(data) {
  return request({
    url: '/v1/business/companyAllInfo',
    method: 'post',
    params: data
  })
}

// 根据公司返回公司id
export function getCompany(data) {
  return request({
    url: '/v1/business/getCompany',
    method: 'post',
    params: data
  })
}


// 单个需求创建
export function demandCreate(data) {
  return request({
    url: '/v1/business/demandCreate',
    method: 'post',
    params: data
  })
}


// 编辑企业信息
export function companyEdit(data) {
  return request({
    url: '/v1/business/companyEdit',
    method: 'post',
    params: data
  })
}


// 单个需求删除
export function demandDel(data) {
  return request({
    url: '/v1/visit/demandDel',
    method: 'post',
    params: data
  })
}

// 单个需求-详情
export function demandInfo(data) {
  return request({
    url: '/v1/business/demandInfo',
    method: 'post',
    params: data
  })
}

// 单个需求--编辑
export function demandEdit(data) {
  return request({
    url: '/v1/business/demandEdit',
    method: 'post',
    params: data
  })
}

// 优专公司排名
export function patRank(data) {
  return request({
    url: '/v1/business/patRank',
    method: 'post',
    params: data
  })
}


// 优专公司排名
export function getCompanyId(data) {
  return request({
    url: '/v1/visit/getCompany',
    method: 'post',
    params: data
  })
}


// 表达式检索--DI
export function expressionDi(data) {
  return request({
    url: '/v2/patent/search/expression',
    method: 'post',
    params: data
  })
}
// 专利分类统计--DI
export function statisticsDi(data) {
  return request({
    url: '/v1/di/statistics',
    method: 'post',
    params: data
  })
}

// 公司问卷列表
export function companyAnswerList(data) {
  return request({
    url: '/v1/companyAnswerList',
    method: 'post',
    data
  })
}
// 创建问卷
export function createQuestion(data) {
  return request({
    url: '/v1/createQuestion',
    method: 'post',
    params: data
  })
}
// 问卷展示
export function questionInfo(data) {
  return request({
    url: '/v1/questionInfo',
    method: 'post',
    params: data
  })
}
// 保存答案
export function saveQuestion(data) {
  return request({
    url: '/v1/saveQuestion',
    method: 'post',
    data
  })
}

// 背调详情
export function backsteppingInfo(data) {
  return request({
    url: '/v1/backsteppingInfo',
    method: 'post',
    data
  })
}

// 背调刷新
export function questionrefresh(data) {
  return request({
    url: '/v1/questionrefresh',
    method: 'post',
    data
  })
}


// 其他荣誉
export function otherHonor(data) {
  return request({
    url: '/v1/search/otherHonor',
    method: 'post',
    data
  })
}
// 专利转让
export function transfer(data) {
  return request({
    url: '/v1/search/transfer',
    method: 'post',
    data
  })
}
// 其他知识产权分析
export function property(data) {
  return request({
    url: '/v1/search/property',
    method: 'post',
    data
  })
}
// 产权纠纷
export function dispute(data) {
  return request({
    url: '/v1/search/dispute',
    method: 'post',
    data
  })
}
// 商标
export function trademark(data) {
  return request({
    url: '/v1/search/trademark',
    method: 'post',
    data
  })
}

// 榜单数据
export function searchRank(data) {
  return request({
    url: '/v1/search/rank',
    method: 'post',
    data
  })
}

// 裁判文书智能检索
export function cseListIntell(data) {
  return request({
    url: '/v1/search/cseListIntell',
    method: 'post',
    data
  })
}
// 裁判文书表达式检索
export function cseList(data) {
  return request({
    url: '/v1/search/cseList',
    method: 'post',
    data
  })
}
//裁判文书pdf文件地址
export function cseDownload(data) {
  return request({
    url: '/v1/search/cseDownload',
    method: 'post',
    data
  })
}
//裁判文书详细信息
export function cseDetail(data) {
  return request({
    url: '/v1/search/cseDetail',
    method: 'post',
    data
  })
}
//代理机构分页
export function searchCro(data) {
  return request({
    url: '/v1/search/cro',
    method: 'post',
    data
  })
}
//专利转让
export function searchTransfer(data) {
  return request({
    url: '/v1/search/transfer',
    method: 'post',
    data
  })
}
//专利转让
export function getCompanyIdNew(data) {
  return request({
    url: '/v1/business/getCompanyId',
    method: 'post',
    data
  })
}


//公司标签信息
export function honorTag(data) {
  return request({
    url: '/v1/honorTag',
    method: 'post',
    data
  })
}
//荣誉标签类型列表
export function honorList(data) {
  return request({
    url: '/v1/honorList',
    method: 'post',
    data
  })
}
//资质与优质企业的修改
export function qualifications(data) {
  return request({
    url: '/v1/qualifications',
    method: 'post',
    data
  })
}
//标签的新增
export function honorAdd(data) {
  return request({
    url: '/v1/honorAdd',
    method: 'post',
    data
  })
}
//标签的删除
export function honorDel(data) {
  return request({
    url: '/v1/honorDel',
    method: 'post',
    data
  })
}
//标签的编辑
export function honorEdit(data) {
  return request({
    url: '/v1/honorEdit',
    method: 'post',
    data
  })
}
//奖项的导入
export function honorImport(data) {
  return request({
    url: '/v1/honorImport',
    method: 'post',
    data
  })
}
//企业标签、需求标签
export function questionLabel(data) {
  return request({
    url: '/v1/questionLabel',
    method: 'get',
    params: data
  })
}
//转让信息表达式检索
export function DiTransfer(data) {
  return request({
    url: '/v1/search/DiTransfer',
    method: 'post',
    data
  })
}
//质押信息表达式检索
export function DiPledge(data) {
  return request({
    url: '/v1/search/DiPledge',
    method: 'post',
    data
  })
}
//质押信息表达式检索
export function DiPermit(data) {
  return request({
    url: '/v1/search/DiPermit',
    method: 'post',
    data
  })
}
//背调--企业荣誉资质
export function searchHonor(data) {
  return request({
    url: '/v1/search/honor',
    method: 'get',
    params: data
  })
}
//商标信息表达式检索
export function trademark_list(data) {
  return request({
    url: '/v1/search/trademark_list',
    method: 'post',
    data
  })
}

//走访信息-需求、走访、解决率
export function getVisitInfo(data) {
  return request({
    url: '/v1/visit/getVisitInfo',
    method: 'post',
    data
  })
}

//需求数量
export function visitDemandInfo(data) {
  return request({
    url: '/v1/visit/demandInfo',
    method: 'post',
    data
  })
}


//专利信息
export function getPatentInfo(data) {
  return request({
    url: '/v1/visit/getPatentInfo',
    method: 'post',
    data
  })
}

//专利新增数据
export function getPatentAdd(data) {
  return request({
    url: '/v1/visit/getPatentAdd',
    method: 'post',
    data
  })
}



// 报表数据
// export function reportInfo(data) {
//   return request({
//     url: '/v1/report/info',
//     method: 'get',
//     params: data
//   })
// }
// 报表数据-直接返回全部 新
export function getReportData(data) {
  return request({
    url: '/v1/report/getReportData',
    method: 'get',
    params: data
  })
}

// 新首页数据
export function getIndexData(data) {
  return request({
    url: '/v1/report/getIndexData',
    method: 'get',
    params: data
  })
}
// 新首页数据-di数据
export function getDiData(data) {
  return request({
    url: '/v1/report/getDiData',
    method: 'get',
    params: data
  })
}
// 更新月份诉讼信息
export function updateIso(data) {
  return request({
    url: '/v1/report/updateIso',
    method: 'get',
    params: data
  })
}
// 获取报表可选月份
export function getMonth(data) {
  return request({
    url: '/v1/report/getMonth',
    method: 'get',
    params: data
  })
}
// 页面本地法律事件列表
export function getLawList(data) {
  return request({
    url: '/v1/report/getLawList',
    method: 'get',
    params: data
  })
}
// 获取报表可选月份
export function getLawMonth(data) {
  return request({
    url: '/v1/report/getLawMonth',
    method: 'get',
    params: data
  })
}

// 创建自定义报告
export function createReport(data) {
  return request({
    url: '/v1/report/createReport',
    method: 'get',
    params: data
  })
}
// 报表目录
export function getReportMenu(data) {
  return request({
    url: '/v1/report/getReportMenu',
    method: 'get',
    params: data
  })
}
export function getReportMenu_no(data) {
  return request({
    url: '/v1/company/getReportMenu',
    method: 'get',
    params: data
  })
}

// 报告列表
export function reportList(data) {
  return request({
    url: '/v1/report/reportList',
    method: 'get',
    params: data
  })
}

// 报告详情
export function reportInfo(data) {
  return request({
    url: '/v1/report/reportInfo',
    method: 'get',
    params: data
  })
}
export function reportInfo_no(data) {
  return request({
    url: '/v1/company/reportInfo',
    method: 'get',
    params: data
  })
}

// 报告详情--查看更多
export function reportDetail(data) {
  return request({
    url: '/v1/report/reportDetail',
    method: 'get',
    params: data
  })
}

// 报表数据删除
export function reportDel(data) {
  return request({
    url: '/v1/report/reportDel',
    method: 'get',
    params: data
  })
}

// 报告里的全部表单
export function reportExcel(data) {
  return request({
    url: '/v1/export/reportExcel',
    method: 'get',
    params: data
  })
}